using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using FireStarter.CodeGeneration.Generator;

namespace FireStarter.CodeGeneration.Parser
{
    public class CommentExpressionParser : IActionParser
    {
        private static readonly Regex _regex = new Regex(@"\A--\w*");

        public TemplateExpression Parse(ref string templateText, List<IActionParser> actionParsers)
        {
            templateText = "";
            return new CommentExpression();
        }

        
        public bool IsExpressionMatch(string text)
        {
            return text != null && _regex.IsMatch(text);
        }
    }
}